package com.example.springbolgdemo.service;

import com.example.springbolgdemo.pojo.request.AddBlogRequest;
import com.example.springbolgdemo.pojo.request.UpdateBlogRequest;
import com.example.springbolgdemo.pojo.response.BlogDetailResponse;
import com.example.springbolgdemo.pojo.response.BlogInfoResponse;

import java.util.List;

public interface BlogService {
    //通过接口的形式可以接收多个不同的实现的service,便于扩展(在实现类上加@service)

    List<BlogInfoResponse> getList();

    BlogDetailResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogRequest addBlogRequest);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(Integer blogId);
}
